﻿<%@ Page Title="" Language="C#" MasterPageFile="~/GlobalReference/GlobalReferenceMaster.master"
    AutoEventWireup="true" CodeBehind="OrganizationLevelListForm.aspx.cs" Inherits="Eassets.UI.GlobalReference.OrganizationLevelListForm" %>

<%--<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>--%>
<%@ Register Src="~/Components/FlashMessage.ascx" TagName="FlashMessage" TagPrefix="osm" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    <script src="../styles/Common.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="formtitle">
        <asp:Label ID="labelFormTitle" runat="server" Text="Organization Level List"></asp:Label>
    </div>
    <table width="100%" height="5px">
        <tbody>
            <tr>
                <td align="right">
                    <osm:FlashMessage ID="FlashMessage1" runat="server" />
                    &nbsp;&nbsp;&nbsp;
                </td>
            </tr>
        </tbody>
    </table>
    <fieldset>
        <ul class="form">
            <li>
                <div class="formfield">
                    <asp:Label ID="labelOrganizationLevel" runat="server" Text="Business Unit" CssClass="legendlabel_size2"></asp:Label>
                    <asp:DropDownList ID="dropDownListOrganizationLevel" runat="server" CssClass="select"
                        AutoPostBack="true" OnSelectedIndexChanged="dropDownListOrganizationLevel_SelectedIndexChanged">
                        <asp:ListItem Value="" Text="-Select-"></asp:ListItem>
                    </asp:DropDownList>
                    <asp:Label ID="labelOrganizationLevelMandatory" runat="server" Text="*" CssClass="mandatoryfield"></asp:Label>
                </div>
            </li>
        </ul>
    </fieldset>
    <br />
    <br />
    <fieldset>
        <div class="formfield">
            <ul class="form">
                <li>
                    <div class="gridfield">
                        <asp:GridView ID="gridViewOrganizationLevelList" runat="server" Caption="Organization Level List"
                            CssClass="ColStyle" EmptyDataText="No data to display" AutoGenerateColumns="false"
                            AllowPaging="true" PageSize="10" OnPageIndexChanging="gridViewOrganizationLevelList_PageIndexChanging"
                            OnSelectedIndexChanged="gridViewOrganizationLevelList_SelectedIndexChanged" OnRowCreated="gridViewOrganizationLevelList_RowCreated">
                            <RowStyle CssClass="RowStyle" />
                            <AlternatingRowStyle CssClass="AltRowStyle" />
                            <HeaderStyle CssClass="GridHeader" />
                            <Columns>
                                <asp:CommandField ItemStyle-Width="20" ShowSelectButton="True" ButtonType="Image"
                                    SelectImageUrl="~/styles/images/Select_icon_button.gif" />
                                <asp:BoundField DataField="OrganizationLevelListId" />
                                <asp:BoundField DataField="Code" HeaderText="Code" />
                                <asp:BoundField DataField="Description" HeaderText="Description" />
                                <asp:BoundField DataField="OrganizationLevelMode" HeaderText="" />
                            </Columns>
                            <SelectedRowStyle CssClass="SelectedRowStyle" />
                        </asp:GridView>
                        <asp:HiddenField ID="hiddenFieldOrganizationLevel" runat="server" />
                    </div>
                </li>
                <li>
                    <br />
                </li>
            </ul>
            <div class="formfield">
                <ul class="form">
                    <li>
                        <div class="formfield">
                            <asp:Label ID="labelOrganizationLevelCode" runat="server" Text="Organization Level List Code"
                                CssClass="legendlabel_size2"></asp:Label>
                            <asp:TextBox ID="textBoxOrganizationLevelCode" runat="server" Width="100px" Enabled="True"
                                CssClass="textbox_size2" MaxLength="8" TabIndex="1"></asp:TextBox>
                            <font color="#FF0000">*</font>
                        </div>
                    </li>
                    <li>
                        <div class="formfield">
                            <asp:Label ID="labelDescription" runat="server" Text="Description" CssClass="legendlabel_size2"></asp:Label>
                            <asp:TextBox ID="textBoxDescription" runat="server" Width="300px" MaxLength="50"
                                TabIndex="2" Enabled="True" CssClass="textbox_size2"></asp:TextBox>
                            <font color="#FF0000">*</font>
                        </div>
                    </li>
                </ul>
            </div>
    </fieldset>
    <br />
    <br />
    <fieldset>
        <ul class="form">
            <li>
                <div>
                    <table>
                        <tr>
                            <td class="style4">
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                <asp:Button ID="buttonAdd" runat="server" Text="Add" CssClass="buttonstyle" OnClick="ButtonAdd_Click" />
                                <asp:Button ID="buttonModify" runat="server" Text="Modify" CssClass="buttonstyle"
                                    OnClick="ButtonModify_Click" />
                                <asp:Button ID="buttonDelete" runat="server" Text="Delete" CssClass="buttonstyle"
                                    OnClick="ButtonDelete_Click" Visible="false" />
                            </td>
                            <td>
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                <asp:Button ID="buttonSave" runat="server" Text="Save" CssClass="buttonstyle" OnClick="buttonSave_Click" />
                                <asp:Button ID="buttonClear" runat="server" Text="Cancel" CssClass="buttonstyle"
                                    OnClick="ButtonClear_Click" />
                            </td>
                        </tr>
                    </table>
                </div>
            </li>
        </ul>
        </ul> </div> </div>
    </fieldset>
</asp:Content>
